home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / linux / howto / uucp < prev    next >
Internet Message Format  |  1994-03-15  |  18KB

  1. Path: bloom-beacon.mit.edu!hookup!ames!elroy.jpl.nasa.gov!swrinde!emory!news-feed-2.peachnet.edu!concert!bigblue.oit.unc.edu!sunSITE!mdw
  2. From: vince@victrola.wa.com (Vince Skahan)
  3. Newsgroups: comp.os.linux.announce,comp.os.linux.admin,comp.answers,news.answers
  4. Subject: Linux UUCP HOWTO
  5. Followup-To: poster
  6. Date: 16 Mar 1994 05:27:49 GMT
  7. Organization: The University of North Carolina at Chapel Hill
  8. Lines: 484
  9. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  10. Message-ID: <2m65cl$e18@bigblue.oit.unc.edu>
  11. Reply-To: vince@victrola.wa.com (Vince Skahan)
  12. NNTP-Posting-Host: calzone.oit.unc.edu
  13. Originator: mdw@sunSITE
  14. Xref: bloom-beacon.mit.edu comp.os.linux.announce:1956 comp.os.linux.admin:5617 comp.answers:4186 news.answers:16455
  15.  
  16. Archive-name: linux/howto/uucp
  17. Last modified:  26 January 1994 
  18.  
  19. The Linux UUCP HOWTO
  20. by Vince Skahan, <vince@victrola.wa.com>
  21. v1.5, Last Modified 26 January 1994 
  22. ---------------------------------------------------------------------------
  23.  
  24. This document describes the setup and care+feeding of UUCP under Linux.
  25.  
  26. You need to read this if you plan to connect to remote sites via UUCP
  27. via a modem, via a direct-connection, or via Internet.
  28.  
  29. You probably do *not* need to read this document if don't talk UUCP.
  30.  
  31.  
  32. 0.  Introduction
  33.  
  34.     The intent of this document is to answer some of the questions and
  35.     comments that appear to meet the definition of 'frequently asked
  36.     questions' about UUCP software under Linux in general, and the
  37.     version in the Linux SLS distribution in particular.
  38.  
  39.     This document and the corresponding Mail and News 'HOWTO' documents
  40.     collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously
  41.     been posted to comp.os.linux.announce.
  42.  
  43.  
  44. 0.1 New versions of this document
  45.  
  46.     New versions of this document will be periodically posted to
  47.     comp.os.linux.announce, comp.answers, and news.answers.  They will
  48.     also be added to the various anonymous ftp sites who archive such
  49.     information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  50.  
  51.  
  52. 0.2 Feedback
  53.  
  54.     I am interested in any feedback, positive or negative, regarding
  55.     the content of this document via e-mail.  Definitely contact me if
  56.     you find errors or obvious omissions.
  57.  
  58.     I read, but do not necessarily respond to, all e-mail I receive.
  59.     Requests for enhancements will be considered and acted upon based on
  60.     that day's combination of available time, merit of the request, and
  61.     daily blood pressure :-)
  62.  
  63.      Flames will quietly go to /dev/null so don't bother.
  64.  
  65.     Feedback concerning the actual format of the document should go to
  66.     the HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  67.  
  68. 0.3 Copyright Information
  69.  
  70.     The UUCP-HOWTO is copyrighted (c)1994 Vince Skahan.
  71.  
  72.     A verbatim copy may be reproduced or distributed in any medium physical
  73.     or electronic without permission of the author.  Translations are
  74.     similarly permitted without express permission if it includes a notice
  75.     on who translated it.
  76.  
  77.     Short quotes may be used without prior consent by the author.
  78.     Derivative work and partial distributions of the UUCP-HOWTO must be
  79.     accompanied with either a verbatim copy of this file or a pointer to
  80.     the verbatim copy.
  81.  
  82.     Commercial redistribution is allowed and encouraged; however, the
  83.     author would like to be notified of any such distributions.
  84.  
  85.     In short, we wish to promote dissemination of this information through
  86.     as many channels as possible. However, we do wish to retain copyright
  87.     on the HOWTO documents, and would like to be notified of any plans to
  88.     redistribute the HOWTOs.
  89.  
  90.     We further want that ALL information provided in the HOWTOS is
  91.     disseminated. If you have questions, please contact Matt Welsh, the
  92.     Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  93.  
  94.  
  95. 0.4 Standard Disclaimer
  96.  
  97.     Of course, I disavow any potential liability for the contents of this
  98.     document.  Use of the concepts, examples, and/or other content of this
  99.     document is entirely at your own risk.
  100.  
  101.  
  102. 0.5 Other sources of information
  103.  
  104.     USENET:
  105.     =======
  106.         comp.mail.uucp can answer most of your UUCP questions
  107.  
  108.     Mailing Lists:
  109.     ==============
  110.  
  111.         There is a Taylor UUCP mailing list. 
  112.  
  113.         To join (or get off) the list, send mail to
  114.         taylor-uucp-request@gnu.ai.mit.edu  
  115.  
  116.         This request goes to a person, not to a program, so please
  117.         make sure that you include the address at which you want to
  118.         receive mail in the text of the message.
  119.  
  120.         To send a message to the list, send it to
  121.         taylor-uucp@gnu.ai.mit.edu.
  122.  
  123.     Books:
  124.     ======
  125.  
  126.     HDB and V2 versions of UUCP are documented in about every vendor's
  127.     documentation as well as in almost all *nix communications books.
  128.  
  129.     Taylor config files are currently only documented in the info files
  130.     provided with the sources (and in the SLS distribution hopefully).
  131.     To read them, you can grab the nice 'infosrc' program from the 
  132.     SLS 's' disks and compile it.
  133.  
  134.     The following is a non-inclusive set of books that will help...
  135.  
  136.     'Managing UUCP and USENET' from O'Reilly and Associates is in my
  137.         opinion the best book out there for figuring out the
  138.         programs and protocols involved in being a USENET site.
  139.  
  140.     'Unix Communications' from The Waite Group contains a nice
  141.         description of all the pieces (and more) and how they fit
  142.         together.
  143.  
  144.     'Practical Unix Security' from O'Reilly and Associates has a nice
  145.         discussion of how to secure UUCP in general.
  146.  
  147.     'The Internet Complete Reference' from Osborne is a fine reference
  148.     book that explains the various services available on Internet and
  149.     is a great "one-stop-shopping" source for information on news, mail,
  150.     and various other Internet resources.
  151.  
  152.  
  153. 0.6 Where *NOT* to look for help
  154.  
  155.     There is nothing 'special' about configuring and running UUCP under
  156.     Linux (any more).  Accordingly, you almost certainly do *NOT* want
  157.     to be posting generic UUCP-related questions to the comp.os.linux.*
  158.     newsgroups.
  159.  
  160.     Unless your posting is truly Linux-specific (ie, "please tell me
  161.     what config file support is built into the binaries for Taylor
  162.     uucp v1.04 in SLS v1.02"), you should be asking your questions in
  163.     comp.mail.uucp or on the Taylor UUCP mailing list as indicated
  164.     above.
  165.  
  166.     Let me repeat that.
  167.  
  168.     There is virtually no reason to post anything uucp-related in the
  169.     comp.os.linux hierarchy any more.  There are existing newsgroups in
  170.     the comp.mail.* hierarchy to handle *ALL* your questions.
  171.  
  172.  
  173. 1.0 Hardware Requirements
  174.  
  175.     There are no specific hardware requirements for UUCP under Linux.
  176.     Basically any Hayes-compatible modem works painlessly with UUCP.
  177.  
  178.     In most cases, you'll want the fastest modem you can afford.  In
  179.     general, you want to have a 16550 UART on your serial board or
  180.     built into your modem to handle speeds of above 9600 baud.
  181.  
  182.     If you don't know what that last sentence means, please consult the
  183.     comp.dcom.modems group or the various fine modem and serial
  184.     communications FAQs and periodic postings on USENET.
  185.  
  186.  
  187. 2.0 Getting UUCP 
  188.  
  189.     Taylor UUCP (current version 1.04) is available on prep.ai.mit.edu
  190.     in source form and in the Linux SLS distribution in binary form.
  191.  
  192.     The newspak-2.0.tar.z distribution contains config files and readme
  193.     files related to building uucp, news, and mail software under Linux
  194.     from the various freely-available sources.  It can usually be found 
  195.     on sunsite.unc.edu in the directory /pub/Linux/system/Mail.
  196.  
  197.  
  198. 3.0 Installing the Software
  199.  
  200.     [...much of this section is taken verbatim from the README file in
  201.         the Taylor UUCP v1.04 sources - it's provided here so I can
  202.         help you 'rtfm' instead of just telling you to do so...]
  203.  
  204.     Detailed compilation instructions are in uucp.texi in the sources.
  205.  
  206.     You can grab 'known good' conf.h and policy.h files for Linux 
  207.     from the newspak distribution referred to in the 'other sources of
  208.     information' section above.  In that case, you can probably go right
  209.     to typing 'make'.
  210.  
  211.     To extract a gzip'd tar archive, I do the following:
  212.         gunzip -c filename.tar.z | tar xvf -
  213.  
  214.  
  215. 3.1 Edit Makefile.in to set installation directories.
  216.     
  217.     Here, I set 'prefix' to "/usr" rather than the default
  218.     of "/usr/local"
  219.  
  220.  
  221. 3.2 Run 'configure'
  222.  
  223.     Type ``sh configure''. 
  224.  
  225.     The configure script will compile a number of test programs to see
  226.     what is available on your system and will calculate many things.
  227.  
  228.     The configure script will create conf.h from conf.h.in and
  229.     Makefile from Makefile.in.  It will also create config.status,
  230.     which is a shell script which actually creates the files.
  231.  
  232.  
  233. 3.2 Configure the future setup of the software
  234.  
  235.     Examine conf.h and Makefile to make sure they're right.
  236.     - I took the defaults
  237.  
  238.     Edit policy.h for your local system.
  239.     - set the type of lockfiles you want (HAVE_HDB_LOCKFILES) 
  240.     - set the type of config files you want built in
  241.         (HAVE_TAYLOR_CONFIG, HAVE_V2_CONFIG, HAVE_HDB_CONFIG)
  242.     - set the type of spool directory structure you want
  243.         (SPOOLDIR_HDB)
  244.     - set the type of logging you want (HAVE_HDB_LOGGING)
  245.     - set the default search path for commands
  246.         (I added /usr/local/bin to mine...)
  247.  
  248.         
  249. 3.3 Compile and install the software
  250.  
  251.     Type "make".
  252.  
  253.     Use "uuchk | more" to check configuration files.  You can use
  254.     ``uuconv'' to convert between configuration file formats.
  255.  
  256.     Type "make install" to install.
  257.  
  258.  
  259. 3.4 Set up the config files
  260.  
  261.     I'd recommend you start by taking the attached known-good
  262.     config files for HDB mode and installing them.  
  263.  
  264.     Make sure that the Permissions file indicates exactly where 
  265.     rmail and rnews are to be found if you put them anywhere 
  266.     other than in the path you specified in policy.h
  267.  
  268.     Make sure that your Devices files matches the actual location
  269.     of your modem (cua1=COM2 in the examples)
  270.  
  271.     Edit the Systems file to set up the system(s) you talk to
  272.     with their speed, phone number, username, and password.
  273.     *PROTECT THIS FILE AGAINST WORLD READ*
  274.  
  275.     Set up the Permissions file and add a set of lines for each
  276.     site you talk to.  For security reasons, it's recommended to
  277.     make sure they each have a separate account (if you allow dialin)
  278.     and home directory so you can track things.
  279.  
  280.  
  281. 3.5 Give it a try
  282.  
  283.     /usr/lib/uucp/uucico -r 1 -x 9 -s remote_system_name
  284.  
  285.     The -x 9 will have maximum debugging information written to
  286.     the /usr/spool/uucp/.Admin/audit.local file for help in initial
  287.     setup. I normally run -x 4 here since that level logs details
  288.     that help me with login problems. Obviously, this contains 
  289.     cleartext information from your Systems file (account/password)
  290.     so protect it against world-read. 
  291.  
  292.     [...from Pierre.Beyssac@emeraude.syseca.fr ...]
  293.  
  294.     Taylor has more logging levels.  Use -x all to get the highest
  295.     level possible.  
  296.  
  297.     Also, do a 'tail -f /usr/spool/uucp/.Admin/audit.local' while
  298.     debugging to watch things happen on the fly.
  299.  
  300.  
  301. 3.6 It doesn't work - now what ?
  302.  
  303.     In general, you can refer to the documentation mentioned above
  304.     if things don't work.  You can also refer to your more experienced
  305.     UUCP neighbors for help.  Usually, it's something like a typo
  306.     anyway.
  307.  
  308.  
  309. 4.0 Frequently Asked Questions about Linux UUCP
  310.  
  311.  
  312. 4.1 Why is SLS uucp configured in HDB rather than 'Taylor' mode?
  313.  
  314.     [...religious mode on - I know some people are just as religious
  315.         about 'ease of use' as I am about 'being standard'.  That's
  316.         why they make source code you can build your own from :-) ...]
  317.  
  318.     Because IMHO it's the de-facto standard UUCP implementation at
  319.     this time.  There are thousands of sites with experienced admins
  320.     and there are many places you can get incredibly good information
  321.     concerning the HDB setup.
  322.  
  323.     The uucp-1.04 that's in SLS 1.02 and later has all three modes of
  324.     config files built in.  While I can't test it, I did 'rtfm' and Ian
  325.     Taylor tells me that it should work.
  326.  
  327.     The search order for config files is Taylor...then V2 (L.sys)...  then
  328.     HDB.  Use the uuconv utility in /usr/lib/uucp to convert config files
  329.     from one mode to another.
  330.  
  331.     If you can't wait, grab the sources for uucp and specify
  332.     HAVE_BNU_CONFIG, HAVE_V2_CONFIG *and* HAVE_TAYLOR_CONFIG in the
  333.     policy.h file and type 'make'.
  334.     
  335.     The following workaround is ugly, but it does work, if you want 
  336.     to run Taylor configs from binaries that don't have it built in...
  337.  
  338.     [... From mbravo@tctube.spb.su (Michael E. Bravo) ...]
  339.  
  340.      - add  '-I /usr/local/lib/uucp/config' to _every_ invocation of 
  341.         whatever program in uucp package
  342.  
  343.  
  344. 4.1 Why do I get 'timeout' on connections when I upgraded to uucp-1.04 ?
  345.  
  346.     [... from Ed Carp - erc@apple.com ...]
  347.  
  348.     If you use a 'Direct' device in the Devices file, there's now a
  349.     10 second timeout compiled in.  Make the name of the Device anything
  350.     other than 'Direct'.  If you tweak the example /usr/lib/uucp files
  351.     provided with SLS, you won't have problems with this one.
  352.  
  353.     [... from Greg Naber - greg@squally.halcyon.com ...]
  354.  
  355.     If you get chat script timeouts, you can tweak the sources by 
  356.     editing at line 323 in uuconf/syssub.c and changing the default
  357.     timeouts from 10 seconds to something larger.
  358.  
  359.     [... from Ed Rodda - ed@orca.wimsey.bc.ca ...]
  360.     If you get chat script timeouts, typically connecting to other
  361.     Taylor sites, a pause after login can fix this.
  362.  
  363.     feed Any ACU,ag 38400 5551212 ogin: \c\d "" yourname word: passwd
  364.                                             ^^^^ 
  365.     [... from Dr. Eberhard W. Lisse - el@lisse.NA ...]
  366.     Some kernels experience modems hanging up after a couple of seconds.
  367.     The following patch sent by Ian Taylor might help...
  368.  
  369. *** conn.c.orig Mon Feb 22 20:25:24 1993
  370. --- conn.c      Mon Feb 22 20:33:10 1993
  371. ***************
  372. *** 204,209 ****
  373. --- 204,212 ----
  374.  
  375.      /* Make sure any signal reporting has been done before we set
  376.        fLog_sighup back to TRUE.  */
  377. +   /* SMR: it seems to me if we don't care about SIGHUPS, we should clear
  378. +      the flag before we return  */
  379. +   afSignal[INDEXSIG_SIGHUP] = FALSE;
  380.     ulog (LOG_ERROR, (const char *) NULL);
  381.     fLog_sighup = TRUE;
  382.  
  383.  
  384. 4.2 Why doesn't HDB anonymous uucp seem to work ?
  385.  
  386.     The SLS anonymous uucp only works in Taylor mode because it's
  387.     compiled with HAVE_TAYLOR_CONFIG.  If you want to do anon uucp in HDB
  388.     mode, you'll have to recompile the sources with just HDB defined.
  389.     Ian Taylor is considering which way to deal with this 'feature'...
  390.  
  391.     Also, Taylor in HDB mode seems to be sensitive to white space and
  392.     blank lines.  To be safe, make sure that there are no blank lines 
  393.     or trailing spaces in the Permissions file.
  394.  
  395.     Lastly, make sure that you have a file called remote.unknown in
  396.     /usr/lib/uucp and that it's *NOT* executable.  See the O'Reilly+Assoc
  397.     book "Managing UUCP and USENET" for details regarding this file.
  398.  
  399.  
  400. 4.3 What does 'no matching ports found' mean ?
  401.  
  402.     In all probability, you are attempting to use a device
  403.     (/usr/lib/uucp/Devices) that doesn't exist, or the device you've
  404.     specified in the /usr/lib/uucp/Systems file doesn't match up with
  405.     any valid devices in the Devices file.
  406.  
  407.     Following this are *sanitized* versions of my working Taylor 1.04
  408.     HDB config files that you can plug in and use...
  409.  
  410.     note the 'ACU' in the Systems ?  That tells which 'port' to use in
  411.     Devices
  412.  
  413.     see the 'scout' word in Systems ?  That tells which dialer to use
  414.     in Dialers.  
  415.  
  416.     If you had a ACU port, but none that matched the specified dialer
  417.     on the same line in Systems, you'll get that message.
  418.  
  419.  
  420. 4.4 What are known good config files for HDB mode ?
  421.  
  422.     The following are 'known-good' config files for Taylor 1.04 under
  423.     Linux in HoneyDanBer mode.  They work on kernels of 0.99-8 or
  424.     later. All files should be in /usr/lib/uucp unless you've tweaked
  425.     the sources to put the uucp library elsewhere.
  426.  
  427.     If you *HAVE* put things in non-standard places, be aware that
  428.     things like sendmail might get very confused. You need to ensure
  429.     that all communications-related programs agree on your idea
  430.     of 'standard' paths.
  431.  
  432.     If you're running a kernel of 0.99-7 or earlier, change 'cua1' to
  433.     'ttyS1'.
  434.  
  435. #------------- Devices -------------
  436. # make sure the device (cua1 here) matches your system
  437. # cua1 = COM2 
  438. #
  439. # here 'scout' is the Digicom Scout Plus 19.2 modem I use
  440. # tbfast etc. is for a Telebit Trailblazer Plus modem's various speeds
  441. #
  442. ACU cua1 - 19200 scout
  443. ACU cua1 - 9600 tbfast
  444. ACU cua1 - 1200 tbslow
  445. ACU cua1 - 2400 tbmed
  446.  
  447. #------------- dialers --------------
  448. # note the setting of the Trailblazer registers 'on the fly'
  449. # 'scout' is a Digicom Scout Plus (Hayes-like) modem I use here
  450. #
  451. scout    =W-,    "" ATM0DT\T CONNECT
  452. tbfast    =W-,    "" A\pA\pA\pT OK ATS50=255DT\T CONNECT\sFAST
  453. tbslow    =W-,    "" A\pA\pA\pT OK ATS50=2DT\T CONNECT\s1200
  454. tbmed    =W-,    "" A\pA\pA\pT OK ATS50=3DT\T CONNECT\s2400
  455.  
  456. #-------------- Systems -------------
  457. # this is a very generic entry that will work for most systems
  458. #
  459. # the Any;1 means that you can call once per minute with using -f (force)
  460. # the ACU,g means force 'g' protocol rather than Taylor's default 'i'
  461. #
  462. fredsys Any;1 ACU,g 19200 scout5555555 "" \r ogin:--ogin: uanon word: uanon 
  463.  
  464. #-------------------------------- Permissions -------------------------
  465.  
  466. # Taylor UUCP in HDB mode appears to be sensitive to blank lines.
  467. # Make sure all Permissions lines are real or commented out.
  468. #    
  469. # this is a anonymous uucp entry
  470. #
  471. LOGNAME=nuucp MACHINE=OTHER \
  472. READ=/usr/spool/uucp/nuucp \
  473. WRITE=/usr/spool/uucp/nuucp \
  474. SENDFILES=yes REQUEST=yes \
  475. COMMANDS=/bin/rmail
  476. #
  477. # this is a normal setup for a remote system that talks to us
  478. # note the absolute path to rnews since this site puts things
  479. # in locations that aren't "standard"
  480. #
  481. LOGNAME=fredsys MACHINE=fredsys \
  482. READ=/usr/spool/uucp/fredsys:/usr/spool/uucp/uucppublic:/files \
  483. WRITE=/usr/spool/uucp/fredsys:/usr/spool/uucppublic \
  484. SENDFILES=yes REQUEST=yes \
  485. COMMANDS=/bin/rmail:/usr/local/lib/news/bin/rnews
  486. #----------------------------------------------------------------------
  487.  
  488.  
  489. 5.0 Acknowledgements
  490.  
  491.     The following people have helped in the assembly of the information
  492.     (and experience) that helped make this document possible:
  493.  
  494.     Ed Carp, Steve Robbins, Ian Taylor, Greg Naber, Matt Welsh, 
  495.     Pierre Beyssac
  496.  
  497.     If I forgot anybody, my apologies...
  498.  
  499.  
  500.